<?php /* EL PSY CONGROO */      	     
require dirname(__FILE__) . DIRECTORY_SEPARATOR . '/functions/functions.php';     	 	   	
RegisterPlugin("San_Rabbit", "ActivePlugin_San_Rabbit");    		  				
    			  		 
if ($zbp->Config('San_Rabbit')->s_slide == '1'){    	   	 		
	function San_Rabbit_tags_set(&$template){    						  
		global $zbp,$blogversion;      			 		
		if($blogversion>=150101){    			 	   
			$array = $zbp->configs['San_Rabbit']->GetData();    		  	 		
		}else{    	  	 	 	
			$array = $zbp->configs['San_Rabbit']->Data;    		 	    
		}     		 	 		
		foreach ($array as $key=>$val){    	   	  	
				$template->SetTags($key,$val);    	    	  
		}    	  				 
	}    	  		   
}          	 		
            
function San_Rabbit_Response5(){     	 	    
	global $zbp,$article;
	echo '<style>
   .edit label { line-height:30px; font-weight:bold; display:inline-block; vertical-align:top; }
.edit .metasrc { width:99%; height:30px; display:inline-block; vertical-align:top; }
.edit .metahalf { width:49%; height:30px; display:inline-block; vertical-align:top; }
.metahalf:nth-child(even) { float:right; }
.edit .uploadimg { height:30px; margin:0 0 0 -90px; padding:0 15px; border:0; background:#004c98; display:inline-block; vertical-align:top; }
.edit .metaintro { width:99%; padding:0.25em; }
.introbox { width:99%; height:72px; margin-bottom:10px; padding:15px; border:1px solid #ddd; overflow:hidden; }
.introbox.on { height:auto; }
.togglelabel { line-height:40px; margin-bottom:10px; font-weight:bold; text-align:center; cursor:pointer; background:#ddd; }
.media { margin-top:15px; }
.mediacover { width:100px; float:left; }
.mediacover p { height:100px; padding:0; position:relative; }
.mediacover .uploadico { width:100%; height:100%; margin:0; padding:9px; border:1px solid transparent; background:transparent; position:absolute; top:0; right:0; box-sizing:border-box; }
.mediacover img { width:100%; height:100%; }
.mediainfo { padding-left:120px; }
.mediainfo p,.videobox { padding:0 0 10px; position:relative; }
.mediainfo .button-img,.videobox .button-img { height:30px; margin:0 0 0 -90px; padding:0 15px; border:0; background:#004c98; position:absolute; right:0; }

   </style>';
       if ($zbp->CheckPlugin('UEditor')) {	    	 					        	  	 
	    echo "<script type=\"text/javascript\" src=\"{$zbp->host}zb_users/theme/San_Rabbit/style/js/lib.upload.js\"></script>";     		  	       	  	  	
    }    	  		  	
           	 	 	
        if(htmlspecialchars($article->Metas->listimg)){    			   		
            $listimg = htmlspecialchars($article->Metas->listimg);    	 	   	 
        }else{     		 	 		
            $listimg = $zbp->host.'zb_users/theme/San_Rabbit/style/images/listimg.png';     		     
        }
        echo '<div class="introbox on"><div class="togglelabel">+++++ 缩略图设置 +++++</div>
<div class="media">
    <div class="mediacover upload_button"><p>
   
   
    <span id="localImag"><img id="upload123" src="' . $listimg . '" class="thumbimg" /></span></p>

    </div>
    <div class="mediainfo on">
        <div class="mediaform">
            <p class="upload_button">
                <span><input name="meta_listimg" value="' . htmlspecialchars($article->Metas->listimg) . '" class="metasrc uplod_img"></span>
                <span><input type="button" class="button button-img" value="上传图片"></span>
            </p>
			<p>
                图片尺寸：150x115；
            </p>
		</div>
    </div>
</div>
            </div>';
}          	 
     						 
function San_Rabbit_Get_Tags(){    	 	 	   
    global $zbp,$str;    			     
    $str = '';    	 		 	  
    $array = $zbp->GetTagList('','',array('tag_Count'=>'DESC'),array(15),'');      	     
    foreach ($array as $tag) {    		 	 		 
        $str .= "<li><a href=\"{$tag->Url}\" title=\"{$tag->Name}\">{$tag->Name}</a></li>";    		  				
    }    	    	 	
    return $str;         	  
}    	  				 
    			   	 